<%@ include file="jsp-admin-header.jsp" %>

<c:if test = "${not empty errorMessage}">
	<div class = "errorblock">
		Your login attempt was not successful, try again.<br /> Caused :
		${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
	</div>
</c:if>

<form action = "${adminContextPath}/j_spring_security_check" method = "post">
	<table>
		<tr>
			<td>
				<spring:message code="label.username" />:
			</td>
			<td>
				<input id="j_username" name="j_username" type="text" />
			</td>
		</tr>
		<% for(int i = 0; i < 5; i++)  {%>
			<tr>
			</tr>
		<% }%>
		<tr>
			<td>
				<spring:message code="label.password" />:
			</td>
			<td>
				<input id="j_password" name="j_password" type="password" />
			</td>
		</tr>
		<% for(int i = 0; i < 5; i++)  {%>
			<tr>
			</tr>
		<% }%>
		<tr>
			<td>
				<input type="submit" value = "<spring:message code="label.login" />" />
			</td>
		</tr>
	</table>
</form>